package com.fxnotes.domain.repository;

import com.fxnotes.database.inmemory.repository.EntityDuplicateException;
import com.fxnotes.domain.model.Book;
import com.fxnotes.domain.model.Chapter;
import com.fxnotes.domain.model.Page;
import java.util.List;

public interface IChapterRepository {

    void add(Book book, Chapter chapter) throws EntityDuplicateException;

    void updateName(Chapter chapter, String name) throws EntityDuplicateException;

    void updatePages(Chapter chapter, List<Page> pages);
    
    void remove(Book book, Chapter chapter);
}
